package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the useronline database table.
 * 
 */
@Entity
@Table(name="useronline")
public class Useronline implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="USERID")
	private long userid;

	@Column(name="IP")
	private String ip;

	@Column(name="ISONLINE")
	private boolean isonline;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LASTLOGINTIME")
	private Date lastlogintime;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LOGINTIME")
	private Date logintime;

	@Column(name="SESSIONID")
	private String sessionid;

    public Useronline() {
    }

	public long getUserid() {
		return this.userid;
	}

	public void setUserid(long userid) {
		this.userid = userid;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public boolean getIsonline() {
		return this.isonline;
	}

	public void setIsonline(boolean isonline) {
		this.isonline = isonline;
	}

	public Date getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public Date getLogintime() {
		return this.logintime;
	}

	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}

	public String getSessionid() {
		return this.sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

}